home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / objcissu.lha / no-import < prev    next >
Text File  |  1993-02-27  |  1KB  |  29 lines

  1. Date: Wed, 6 Jan 93 10:15:32 -0600
  2. From: lupson@geom.umn.edu
  3. To: gnu-objc@prep.ai.mit.edu
  4. Subject: Re: questions...
  5.  
  6. > 3: Why does gcc not like "#import" statements?  It seems that
  7. >    using "#include" with the #ifndef _File_INCLUDE_ statements is kind of a
  8. >    ugly way to do this.
  9.  
  10. This is really annoying, and I don't understand why gcc has this warning on by default.  I posted a question about this to gnu.misc.discuss and got no replies.  You can stop the pest by putting -Wno-import on the command line when you compile, or if you want to kill it forever edit /usr/local/lib/gcc-lib/<machine-type>/2.3.2/specs:
  11.  
  12. [...]
  13.  
  14. *cpp:
  15. %{!ansi:-D__EXTENSIONS__} -D_MIPSEB -D_SYSTYPE_SYSV %{.S:      
  16. -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} %{.cc:      
  17. -D_LANGUAGE_C_PLUS_PLUS} %{.cxx:        -D_LANGUAGE_C_PLUS_PLUS} %{.C: 
  18. -D_LANGUAGE_C_PLUS_PLUS} %{.m:  -D_LANGUAGE_OBJECTIVE_C -Wno-import} %{!.S:
  19.                                                         ^^^^^^^^^^^
  20. %{!.cc: %{!.cxx: %{!.C: %{!.m: -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}}}}}
  21.  
  22. [...]
  23.  
  24. I could not find any documentation on the specs file so I'm guessing that my modification won't break anything.  Another route would be to modify the cccp source code.
  25.  
  26. Linus Upson
  27. lupson@geom.umn.edu
  28.  
  29.